package com.karaoke.android.data.service

import com.karaoke.android.data.domain.RoomInfo
import com.karaoke.android.data.domain.ScrollText
import com.karaoke.android.data.domain.Song
import com.karaoke.android.data.domain.UpdateInfo
import retrofit2.http.GET
import retrofit2.http.Path
import rx.Observable

/**
 * Created by Administrator on 2017/4/12.
 */

interface RoomService
{
    @GET("/api/v1/room/info/{roomId}")
    fun getRoomInfo(@Path("roomId") roomId: String): Observable<RoomInfo>

    @GET("/AppUpdater/update.json")
    fun getUpdateInfo(): UpdateInfo

    @GET("/api/v1/room/publicSongs")
    fun getPublicSongs(): Observable<List<Song>>

    @GET("/api/v1/room/scrollTexts")
    fun getScrollTexts(): Observable<List<ScrollText>>
}
